package com.jyt.peripheral.print


//todo fortest 订单小票打印相关数据
class OrderPrintInfo {
    val actualAmount: Double? = null//应付金额
    val actualAmountStr: String? = null//应付金额
    val createTime: String? = null//下单日期
    val goodsName: String? = null//菜单名称
    val orderNo: String? = null//订单编号
    val orderType: String? = null//订单来源 1-POS 2-牛大吉外送
    val quantity: Int? = null//数量
    val remarks: String? = null//备注
    val skuValues: String? = null//sku值1
    val skuVar: String? = null//sku值1
    val status: Int? = null//订单状态 1-挂单(待支付) 2-待备货、3-待自提、4-待揽件、5-配送中、6-已收货、7-已完成、8-反结账
    val statusName: String? = null//订单状态(中译) 1-挂单(待支付) 2-待备货、3-待自提、4-待揽件、5-配送中、6-已收货、7-已完成、8-反结账
    val unit: String? = null//销售单位
    val unitPrice: String? = null//单价
    val goodsList: ArrayList<GoodsItem>? = null
    val amount: String? = null//支付金额明细
    val refundStatus: Int? = null//退款状态 1 未申请 2 退款中 3 已退款
    val refundStatusName: String? = null//退款状态(中译) 1未申请 2退款中 3已退款
    val totalAmount: Double? = null  // 订单总金额
    val zeroAmount: Double? = null// 订单末零金额
    val zfbAmount: Double? = null // 支付宝已支付金额
    val wxAmount: Double? = null  // 微信已支付金额
    val rmbAmount: Double? = null  // 现金已支付金额
    val xcxAmount: Double? = null  // 小程序已支付金额
    val discountAmount: Double? = null// 订单优惠金额
    val distWay: Int? = null// 提货类型 1-到店消费 2-预约自提 2-配送到家
    val distWayName: String? = null// 提货类型(中译)1-到店消费 2-预约自提 2-配送到家

}

class GoodsItem {
    val goodsCode: String? = null//菜单商品编号
    val productCode: String? = null//菜单商品编号
    val goodsName: String? = null//菜单名称
    val unitPrice: Double? = null//单价
    val quantity: Double? = null//数量
    val unit: String? = null//销售单位
    val actualAmount: Double? = null//应付金额
    val discountAmount: Double? = null//应付金额
    val actualAmountStr: String? = null//应付金额
    val skuValues: String? = null//sku值1
    val skuVar: String? = null//sku值1
    val discount: Double? = null//商品折扣[百分数]
}